package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.loan.LoanDueIn;
import com.ms.p2p.provider.LoanDueInProvider;
import com.ms.p2p.service.impl.LoanDueInServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class LoanDueInProviderImpl implements LoanDueInProvider {
    @Autowired
    LoanDueInServiceImpl loanDueInService;

    public LoanDueIn findByTenderIdAndOrder(int tender_id, int order) {
        return loanDueInService.findByTenderIdAndOrder(tender_id,order);
    }

    public List<LoanDueIn> findByBorrowIdAndOrder(int loanid, int stay_periods) {
        return loanDueInService.findByBorrowIdAndOrder(loanid,stay_periods);
    }

    public int insert(LoanDueIn loanDueIn) {
        return loanDueInService.insert(loanDueIn);
    }

    public int update(LoanDueIn loanDueIn) {
        return loanDueInService.update(loanDueIn);
    }

    public List<Map<String, Object>> findPager(Integer id,String status, PageBean page) {
        return loanDueInService.findPager(id,status,page);
    }

    public int findCount(Integer id,String status) {
        return loanDueInService.findCount(id,status);
    }

    public String getIncome(Integer id, Integer status) {
        return loanDueInService.getIncome(id,status);
    }

    public int getcount(Integer id, int i) {
        return loanDueInService.getcount(id,i);
    }
}
